<?php
	$css_list[0]['url'] = './tpl/css/setting.css';
	$js_list[0] = './public/js/city.js';
?>
<!--{template inc/header_n}-->
<div id="body" class="fm960">
	<div class="piece1">
		<div class="piece1_hd"></div>
		<div class="piece1_bd clearfix">
			<div style="width:1180px;">
				<!--{template inc/settings/settings_menu}-->
				<div id="setting_box" class="fl" style="width:700px;">
					<div id="setting_form" class="setting_basic">
					    <table width="100%" border="0" cellspacing="1" class="table_list">
					    {loop $order_list $v}
                            <tr>
                                <td width="50">{$users[$v['shopid']]}</td>
                                <td width="50"><a href="javascript:;" title="{$v['orderid']}">订单号</a></td>
                                <td><a href="/article.php?action=show&id={$v['artid']}" target="_blank">{$v['ordername']}</a></td>
                                <td width="40">{$v['total_fee']}</td>
                                <td width="74"><?php echo date('Y-m-d',$v['dateline']); ?></td>
                                <td>
                                    {if $pis[$v['id']]['isstop']}
                                    <span style="color:red;">交易停止</span>
                                    {elseif $pis[$v['id']]['unpay']}
                                    <span style="color:red;">申请退款中</span>
                                    {else}
                                    {if $v['flag'] == 1}买家已付款
                                    {elseif $v['flag'] == 2}交易成功
                                    {else}<span style="color:red;">待付款</span>
                                    {/if}
                                    {/if}
                                </td>
                                <td width="60">
                                    {if !$pis[$v['id']]['isstop']}
                                    {if $v['flag'] == 0}
                                    <a href="/article.php?action=buy&orderid={$v['id']}">付款</a>
                                    {elseif $v['flag'] == 1}
                                	<a href="/shareinfo.php?action=doorder&id={$v['id']}">确认付款</a>
                                	{elseif $v['flag'] == 2 && (empty($v['comment']) || empty($v['comment2']))}
                                	<a href="/shareinfo.php?action=ordercomment&id={$v['id']}">{if empty($v['comment'])}评价{else}追评{/if}</a>
                                	{else}
                                	<a href="/article.php?action=show&id={$v['artid']}">查看评论</a>
                                	{/if}
                                	{/if}
                                	{if $v['flag'] == 0 || !empty($v['comment']) || $pis[$v['id']]['isstop']}
                                	{if !$pis[$v['id']]['isstop']}<br/>{/if}
                                	<a href="/shareinfo.php?action=order&op=del&id={$v['id']}">删除</a>
                                	{/if}
                                </td>
                            </tr>
					    {/loop}
					    </table>
                        <div class="pagination mt20"> 				
                        	<!--{subtemplate inc/pages}-->
                        </div>
					</div>
				</div>
			</div>
		</div>
		<div class="piece1_ft"></div>
	</div>
	
	<div class="huoguojun2" id="huoguojun"><a href="/list.php?action=robot"><img src="/public/v1/img/huoguojun.png"></a></div>
    <div class="i_notice2">
        <div class="j_title">公告栏</div>
        <div class="j_list">
            <ul>
                <li><a href="#"><span style="color:red;">泡泡火锅加盟,提供个大卫视广告宣传</span></a></li>
                <li><a href="#">火锅怎么做才好吃?</a></li>
                <li><a href="#">谁能给我一份火锅配菜全谱?</a></li>
                <li><a href="#">火锅一般而言,是以锅为器具</a></li>
                <li><a href="#">泡泡火锅加盟,提供个大卫视广告宣传</a></li>
                <li><a href="#">火锅怎么做才好吃?</a></li>
                <li><a href="#">谁能给我一份火锅配菜全谱?</a></li>
                <li><a href="#">火锅一般而言,是以锅为器具</a></li>
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript" charset="utf-8" src="/public/js/ueditor1_4_3-utf8-php/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/js/ueditor1_4_3-utf8-php/ueditor.all.js"></script>
<script type="text/javascript">
jQuery(function($){
	<!--{if empty($_FANWE['user']['introduce'])}-->
	$("#introduce").one('focus',function(){
		this.value = '';
	});
	<!--{/if}-->
	$.Bind_City("#province","#city","{$_FANWE['user']['reside_province']}","{$_FANWE['user']['reside_city']}");
});

UE.getEditor('content',{
    //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
    toolbars:[['FullScreen', 'Undo', 'Redo','Bold','simpleupload']],
    //focus时自动清空初始化时的内容
    autoClearinitialContent:true,
    //关闭字数统计
    wordCount:false,
    //关闭elementPath
    elementPathEnabled:false,
    //默认的编辑区域高度
    initialFrameHeight:200,
    initialFrameWidth:500,
    //更多其他参数，请参考ueditor.config.js中的配置项
    serverUrl: '/public/js/ueditor1_4_3-utf8-php/php/controller.php'
}).ready(function(){
    this.setContent('{$article['content']}');
});

function unpay(id, flag) {
    $.post('/list.php?action=plan', {dounpay : 1, id : id, flag : flag}, function(s) {
        if(s == '1') {
            location.reload();
        }
    });
}
</script>
<!--{template inc/footer}-->